Skip to main content link. Accesskey S
  • Help
  • HCL Logo
  • HCL Notes and Domino Application Development wiki
  • THIS WIKI IS READ-ONLY. Individual names altered for privacy purposes.
  • HCL Forums and Blogs
  • Home
  • Product Documentation
  • Community Articles
  • Learning Center
  • API Documentation
Search
Community Articles > Developing Applications > Developing XPage Applications > Binding Data in XPage Applications > Сomparison of two dates
  • Share Show Menu▼
  • Subscribe Show Menu▼

Recent articles by this author

Сomparison of two dates

we have this code. we should make comparison of data from representation with date parameter now. what do we do not so? please, help us! as a result there should be a comparison in a cycle to apply to styles dt session.createDateTime("Today"); var idx viewEntry.getColumnValues().get(12); ...
Community articleСomparison of two dates
Added by ~Vijay Zenboosiskiings on November 7, 2012 | Version 1
  • Actions Show Menu▼
expanded Abstract
collapsed Abstract
No abstract provided.
Tags: comparison, date, timeDifference, session.createDateTime, viewEntry, getColumnValues

we have this code. we should make comparison of data from representation with date parameter now. what do we do not so? please, help us! as a result there should be a comparison in a cycle to apply to styles

 

dt = session.createDateTime("Today");

 
var idx = viewEntry.getColumnValues().get(12);
return idx
 
asd = @Text(idx);
return asd
 
dt1 = session.createDateTime(asd);
 
if (dt1.timeDifference(dt)==0){
return "present"
 
}else if (dt1.timeDifference(dt)>0){
 return "future"
 
}else if (dt1.timeDifference(dt)<0){
 return "past"
} else {
 return "&&&"
}


  • Actions Show Menu▼


expanded Attachments (0)
collapsed Attachments (0)
Edit the article to add or modify attachments.
expanded Versions (1)
collapsed Versions (1)
Version Comparison     
VersionDateChanged by              Summary of changes
This version (1)Nov 7, 2012, 4:54:57 PM~Vijay Zenboosiskiings  
expanded Comments (0)
collapsed Comments (0)
Copy and paste this wiki markup to link to this article from another article in this wiki.
Go ElsewhereStay ConnectedAbout
  • HCL Software
  • HCL Digital Solutions community
  • HCL Software support
  • BlogsDigital Solutions blog
  • Community LinkHCL Software forums and blogs
  • About HCL
  • Privacy
  • Accessibility